package com.lovo.ssc.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 采购表
 * </p>
 *
 * @author lovo
 * @since 2022-07-07
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value= "采购计划实体")
public class BuyPlan extends Model {

    private static final long serialVersionUID = 1L;

    @TableId("buyId")
    @ApiModelProperty(value = "表id")
    private Integer buyId;
    @ApiModelProperty(value = "采购单编号")
    private String code;

    /**
     * 0-食品 1-水果 2-饮料 3-文具
     */
    @ApiModelProperty(value = "商品类型")
    private String type;
    @ApiModelProperty(value = "商品状态")
    @TableField("auditState")
    private String auditState;
    @ApiModelProperty(value = "采购原因")
    private String reason;
    @ApiModelProperty(value = "商品规格")
    private String specs;

    @TableField("goodsName")
    @ApiModelProperty(value = "商品名字")
    private String goodsName;
    @ApiModelProperty(value = "数量")
    private Integer num;


}
